<?php
class commonControl extends Control {
	//rbac验证
    public function __auto() {
        if ($this->rbac_is_login()) {
        	if (!$this->rbac_check_access()) {       		
        		$this->error("没有操作权限");
        	}			
        } else {
            if (!$this->rbac_no_auth()) {
                go("login/index");
            }
        }
    }
}

?>